<?php

class Proxy
{
	public static function Handle( $requestData )
	{
		$proxy = new Proxy();
		return $proxy->switchAction( $requestData );
	}
	
	public function switchAction( $requestData )
	{
		$cmd = get_protocol( $requestData, 'cmd' );
		$scmd = get_protocol( $requestData, 'scmd' );
		
		self::DebugTest();
		debug_log( __CLASS__.':'.__FUNCTION__ );
		debug_var_dump( $requestData );
		
		if ( $cmd == PROTOCOL_CODE_MANAGER ) {
			
		}
		else {
			switch ( $cmd ) {
				case 'value':
					
					break;
				
				default:
					
					break;
			}
		}
	}
	
	private static function DebugTest()
	{
		debug_var_dump( config() );
		debug_var_dump( protocol() );

// for exsample 
//DataTplItem::Initdata();
//$data = Data::Instance();
//$item = $data->item->getTemplate( 3 );
//debug_var_dump( $item );
//debug_var_dump( $item->Name );
//debug_var_dump( $item->EffectiveDose );
		
		
	}
}

?>